package com.ruoyi.hualian.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hualian.mapper.HlTypeMapper;
import com.ruoyi.hualian.domain.HlType;
import com.ruoyi.hualian.service.IHlTypeService;

/**
 * 同步轮Service业务层处理
 * 
 * @author hujian
 */
@Service
public class HlTypeServiceImpl implements IHlTypeService 
{
    @Autowired
    private HlTypeMapper hlTypeMapper;

    /**
     * 查询同步轮
     * 
     * @param typeId 同步轮主键
     * @return 同步轮
     */
    @Override
    public HlType selectHlTypeByTypeId(Long typeId)
    {
        return hlTypeMapper.selectHlTypeByTypeId(typeId);
    }

    /**
     * 查询同步轮列表
     * 
     * @param hlType 同步轮
     * @return 同步轮
     */
    @Override
    public List<HlType> selectHlTypeList(HlType hlType)
    {
        return hlTypeMapper.selectHlTypeList(hlType);
    }

    /**
     * 新增同步轮
     * 
     * @param hlType 同步轮
     * @return 结果
     */
    @Override
    public int insertHlType(HlType hlType)
    {
        return hlTypeMapper.insertHlType(hlType);
    }

    /**
     * 修改同步轮
     * 
     * @param hlType 同步轮
     * @return 结果
     */
    @Override
    public int updateHlType(HlType hlType)
    {
        return hlTypeMapper.updateHlType(hlType);
    }

    /**
     * 批量删除同步轮
     * 
     * @param typeIds 需要删除的同步轮主键
     * @return 结果
     */
    @Override
    public int deleteHlTypeByTypeIds(Long[] typeIds)
    {
        return hlTypeMapper.deleteHlTypeByTypeIds(typeIds);
    }

    /**
     * 删除同步轮信息
     * 
     * @param typeId 同步轮主键
     * @return 结果
     */
    @Override
    public int deleteHlTypeByTypeId(Long typeId)
    {
        return hlTypeMapper.deleteHlTypeByTypeId(typeId);
    }
}
